﻿$(function () {
    $("#datepickerDeparture").datepicker(
    {
        minDate: 0,
        maxDate: "+1M",
        onClose: function( selectedDate ) {
            $("#datepickerReturn").datepicker("option", "minDate", selectedDate);
        }
    });
    $("#datepickerReturn").datepicker(
    {
        minDate: 0,
        maxDate: "+1M",
        onClose: function( selectedDate ) {
            $("#datepickerDeparture").datepicker("option", "maxDate", selectedDate);
        }
    });
});